using Phoenix.Frames;
using Phoenix.Framework;

namespace Phoenix.ActionResults
{
    public abstract class ActionResult
    {
        protected ActionResult(ControllerActionContext context)
        {
            Context = context;
        }

        protected ControllerActionContext Context { get; private set; }

        /// <summary>
        /// Executes result.
        /// </summary>
        /// <param name="targetFrame"> </param>
        public abstract void Execute(IContentFrame targetFrame);
    }
}